home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / CNUMBERE / CNUMBERE.H < prev    next >
Text File  |  1991-07-04  |  988b  |  34 lines

  1. /*                    Interface for CNumberEditor        */
  2.  
  3. #define    _H_CNumberEditor
  4.  
  5. #include "CPane.h"
  6.  
  7. struct    CNumberEditor : CPane {
  8.  
  9.             TextStyle    itsStyle;
  10.             short        significantDigits;
  11.             long        SetCommandNumber;
  12.             Boolean        dirty;
  13.             TEHandle    itsTEHandle;
  14.             
  15.             void        INumberEditor(CView *anEnclosure, CBureaucrat *aSupervisor,
  16.                                         Str255 aFontName, int aFontSize,
  17.                                         Rect    *itsRect, short sigDigs, long    setComm);
  18.             void        Dispose(void);
  19.             void        SetString(Str255    aString);
  20.             void        GetString(Str255    aString);
  21.             
  22.             void        SelectAll(void);
  23.             double        GetDoubleValue(void);
  24.             void        SetDoubleValue(double    newValue);
  25.             long        GetLongValue(void);
  26.             void        SetLongValue(long    newValue);
  27.             void        AdjustCursor(Point    where, RgnHandle    mouseRgn);
  28.             void        Draw(Rect    *area);
  29.             void        DoKeyDown(char theChar, Byte keyCode, EventRecord *macEvent);
  30.             void        DoClick(Point hitPt, short modifierKeys, long when);
  31.             void        Dawdle(long    *sleep);
  32.             void        Activate(void);
  33.             void        Deactivate(void);
  34.                                 };